import { xhrPostJson } from '@/services';
import { DynamicObjectAny } from '@/typings';

const baseUrl = '/arcv'

const api = {
  page: `${baseUrl}/arcvmg/page`,
  create: `${baseUrl}/arcvmg/create`,
  detail: `${baseUrl}/arcvmg/detail`,
  detailJson: `${baseUrl}/arcvmg/detailJson`,
  delete: `${baseUrl}/arcvmg/delete`,
  update:`${baseUrl}/arcvmg/update`,
  arcvBrwrPage: `${baseUrl}/arcvBrwr/page`,
  arcvList: `${baseUrl}/arcvmg/list`,
  rcptDetail: `${baseUrl}/arcvmg/rcptDetail`,
};

// 新增
export const archivesCreate = (params: DynamicObjectAny) => {
  return xhrPostJson(api.create, params);
};
// 编辑
export const archivesUpdate = (params: DynamicObjectAny) => {
  return xhrPostJson(api.update, params);
};
// 详情
export const archivesDetail = (params: DynamicObjectAny) => {
    return xhrPostJson(api.detail, params);
};
// 详情Json
export const archivesDetailJson = (params: DynamicObjectAny) => {
  return xhrPostJson(api.detailJson, params);
}
// 删除
export const archivesDelete = (params: DynamicObjectAny) => {
  return xhrPostJson(api.delete, params);
};
// 删除
export const arcvList = (params: DynamicObjectAny) => {
  return xhrPostJson(api.arcvList, params);
};

export default api;
